package com.net.xpay.common.dao.admin.rbac;

import com.net.xpay.common.domain.admin.rbac.Role;
import com.net.xpay.common.model.admin.rbac.search.RoleSearchModel;
import com.net.common.annotation.DataCommon;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface RoleMapper extends PagedMapper<Long, Role> {
    List<Role> search(@Param("searchModel") RoleSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") RoleSearchModel searchModel);
}
